﻿using System.ComponentModel.DataAnnotations;

namespace WMS_MAV.DTO.Warehouse.Move
{
    public class AddModeDTO
    {

        /// <summary>
        /// 移库编号
        /// </summary>
        public string? MoveTheLibraryNo { get; set; }
        /// <summary>
        /// 移库类型
        /// </summary>
        public string? MoveTheLibraryType { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? AssociateNumber { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? SingleMaker { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? MakeTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? MoveRemark { get; set; }
        /// <summary>
        /// 单据状态
        /// </summary>
        public AuditStatus? AuditStatus { get; set; }
        /// <summary>
        /// 公司ID
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 审核原因
        /// </summary>
        public string? ExamineReason { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExaminePeople { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDelete { get; set; }
        public List<MoveProduct> MoveProduct { get; set; }
    }
    public enum AuditStatus
    {
        全部 = 0,
        等待审核,
        审核成功,
        审核失败
    }
    public class MoveProduct
    {
        [Key]
        public int MoveProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? ProductName { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        public string? ProductNo { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? ProductSpec { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int? OutStorageNum { get; set; }
        /// <summary>
        /// 当前库位
        /// </summary>
        public string? NewBinLocationName { get; set; }
        /// <summary>
        /// 移入库位ID（库位ID）
        /// </summary>
        public int? BinLocationId { get; set; }
        /// <summary>
        /// 公司ID
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int? user_id { get; set; }
        //移库ID
        public int? MoveTheLibraryId { get; set; }
        public string? WarehouseLocationName { get; set; }
        public string? WarehouseName { get; set; }
    }
}

